package com.derbysoft.ota.application.translator.rs;

import static com.derbysoft.remote.dswitch.hotel.constants.GuaranteeType.CreditCard;
import static com.derbysoft.remote.dswitch.hotel.constants.GuaranteeType.Prepay;

import java.util.HashMap;
import java.util.Map;

import com.derbysoft.modules.eip.translator.Translator;
import com.derbysoft.ota.interfaces.protocol._2009a.GuaranteeType.GuaranteeTypeEnum;
import com.derbysoft.remote.dswitch.hotel.constants.GuaranteeType;

public class GuaranteeTypeEnumRSTranslator implements Translator<GuaranteeType, GuaranteeTypeEnum> {

	private static Map<GuaranteeType, GuaranteeTypeEnum> map = new HashMap<GuaranteeType, GuaranteeTypeEnum>();

	static {
		map.put(CreditCard, GuaranteeTypeEnum.CC_DC_VOUCHER);
		map.put(Prepay, GuaranteeTypeEnum.PRE_PAY);
	}

	public GuaranteeTypeEnum translate(GuaranteeType source) {
		return map.get(source);
	}
	
}
